
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class SubTopicForumBO : Csla.BusinessBase<SubTopicForumBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in SubTopicForumBO
			//AuthorizationRules.AllowRead(SubTopicForumIDProperty, "SubTopicForumBOReadGroup");
			//AuthorizationRules.AllowRead(CategoryIDProperty, "SubTopicForumBOReadGroup");
			//AuthorizationRules.AllowRead(SubTopicForumNameProperty, "SubTopicForumBOReadGroup");
			//AuthorizationRules.AllowRead(SubTopicDescriptionProperty, "SubTopicForumBOReadGroup");
			//AuthorizationRules.AllowRead(IsActiveProperty, "SubTopicForumBOReadGroup");

			//AuthorizationRules.AllowWrite(CategoryIDProperty, "SubTopicForumBOWriteGroup");
			//AuthorizationRules.AllowWrite(SubTopicForumNameProperty, "SubTopicForumBOWriteGroup");
			//AuthorizationRules.AllowWrite(SubTopicDescriptionProperty, "SubTopicForumBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsActiveProperty, "SubTopicForumBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of SubTopicForumBO
			//AuthorizationRules.AllowCreate(typeof(SubTopicForumBO), "SubTopicForumBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(SubTopicForumBO), "SubTopicForumBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(SubTopicForumBO), "SubTopicForumBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.SubTopicForum data)
		{
			//CHANGE_ME! //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
